package cn.gtv.sdk.dcas.api;


import com.sad.jetpack.v1.datamodel.api.IDataModelObtainedCallback;

import java.util.List;

import cn.gtv.sdk.dcas.api.db.Event;

public interface IDCASDataUploader {

    void postDCASDataToServer(List<Event> eventList);

    String getTag();

    IServerTokenFactory getServerTokenFactory();

    IDataModelObtainedCallback getCallback();

    Builder toBuilder();

    interface Builder{
        Builder tag(String tag);
        Builder serverFactory(IServerTokenFactory serverTokenFactory);
        Builder callback(IDataModelObtainedCallback callback);
        IDCASDataUploader build();
    }
}
